<?php

/**
 * +------ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER * ---------+
 * +----------------------------------------------------------------------------+
 * | PHPKiisf - Keep It in Simple Framework										|
 * | Version 1.0																|
 * | Copyright (C) <2013>  Mario Cezzare <mcezzare@gmail.com>					|
 * | Blog: http://mcezzare.blogspot.com.br										|
 * |																			|
 * | This program is part of PHPKiisf, and is free software: you can			|
 * | redistribute it and/or modify it under the terms of the GNU 				|
 * | General Public License as published by										|
 * | the Free Software Foundation, either version 3 of the License, or			|
 * | (at your option) any later version.										|
 * |																			|
 * | This program is distributed in the hope that it will be useful,			|
 * | but WITHOUT ANY WARRANTY; without even the implied warranty of				|
 * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the				|
 * | GNU General Public License for more details.								|
 * | You should have received a copy of the GNU General Public License			|
 * | along with this program.  If not, see <http://www.gnu.org/licenses/>.		|
 * +----------------------------------------------------------------------------+
 * | Author : <Mario Cezzare Angelicola Chiodi> <mcezzare@gmail.com>			|
 * +----------------------------------------------------------------------------+
 * | Contributors																|
 * |																			|
 * +----------------------------------------------------------------------------+
 *
 */
/**
 * @package	Lib
 * @access	public
 * @since	2013-03-08
 * @author	Mario Cezzare <mcezzare@gmail.com>
 */
/**
 * This file define if the application is running on
 * Development environment or Production
 * this file must be published for the first time using production as defined
 * and ignored from rsync or any publishing process
 */
$deploy_servers = array(
		"Mario Home" => "192.168.2.254" ,
);

$production_servers = array(
		"Uol Host" => "200.98.197.32" ,
);


$context = "deploy";

if ( php_sapi_name() == 'cli' || PHP_SAPI == 'cli' ) {

}
else {
		if ( in_array( $_SERVER[ "SERVER_ADDR" ] , $deploy_servers ) ) {
				$context = "deploy";
		}


		if ( in_array( $_SERVER[ "SERVER_ADDR" ] , $production_servers ) ) {
				$context = "production";
		}
}
define( "CONTEXT" , $context ) ;
?>